package com.eamois.dao.manual;

import java.util.Collection;

import com.eamois.dao.BaseDao;
import com.eamois.domain.manual.EnsipBom;
import com.eamois.domain.manual.EnsipStructure;
import com.eamois.domain.manual.Technology;
import com.eamois.pdmutil.pdmView.BomView;


public interface EnsipBomDao extends BaseDao<EnsipBom>{
	Collection<BomView> findBomByOther(String bomName,String bomVar);
	
	Collection<BomView> findBomByBomNameAndBomVar(String bomName,String bomVar);
	
	Collection<BomView> findBomByOther(String bomName,String bomVar,String parentid);
	
	BomView findBomByOther2(String partId,String bomVar,String chinaName);
	
	Collection<BomView> findBomByLevel(String seqnum,String bomVar,String bomName);
	
	Collection<EnsipBom> findBomByOther3(String partId,String partVar,String chinaName);
	
	BomView findBomByNameAndVar(String bomName,String bomVar);
	
	Collection<EnsipBom> findEnsipBomByEnsipStructure(EnsipStructure ensipStructure);
	
	boolean saveEnsipBom(BomView bom); 
	boolean deleteEnsipBom(String partId,String partVar);
	BomView findABomByNameAndVar(String bomName,String bomVar);
	
	Collection<EnsipBom> findAllEnsipBom();
	Collection<EnsipBom> findEnsipBom(String partId,String partVar);
	Collection<BomView> findEnsipBom();
	
}
